mapcache_seed hangs in extract mode if it encounters zoom levels with no tiles#42
Open
tbonfort wants to merge 3 commits intoMapServer:mainfrom
tbonfort:b42
Open
mapcache_seed hangs in extract mode if it encounters zoom levels with no tiles#42tbonfort wants to merge 3 commits intoMapServer:mainfrom tbonfort:b42
tbonfort wants to merge 3 commits intoMapServer:mainfrom
tbonfort:b42
Conversation
tbonfort
added a commit
that referenced
this pull request
Aug 20, 2012
Member
|
@aboudreault, this pull request is a proposed change to avoid hanging the seed process. It does not fix the underlying issue at hand which makes the transfer fail if either the source or destination are missing a |
if a tile is not present in the source tileset, silently skip it instead of having it rendered by the source.
Member
|
The previous patch skips absent tiles from the transfer mode completely. I would propose we adopt it as it solves the issues related to tilesets with no |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We've been using mapcache_seed to create small subsets of large caches using the extract mode. It seems that if it encounters a zoom level in the source cache that doesn't have tiles, it hangs.
Our process is like this:
Seed tileset "test" to level 17 in an mbtiles cache (not sure if cache type matters, probably not):
mapcache_seed -c mapcache.xml -t test -g g -z 0,17 -n 4 -d /mnt/map/data/other/aoi.shp -l aoi
Move test.db to a server that only serves tiles, doesn't create them.
Transfer test to test2 (also mbtiles) for a given bbox. Mapcache.xml used for transferring doesn't have a source mapfile for either "test" or "test2" as we don't want this server to render tiles:
mapcache_seed -c mapcache.xml -t test2 -g g -z 0,16 -n 4 -m transfer -x test -e -8595344.000000,5583572.000000,-8554068.000000,5624848.000000
In the case of our source (i.e. "test" tileset) was generated for a restricted area and the bbox for the transfer includes areas that are not within aoi.shp. Therefore at some zoom level, there were no tiles generated for parts of the bbox.
The error that was returned by mapcache_seed was: mbtiles backend failed on image set: SQL logic error or missing database (1)